package net.oschina.app.protocol.me_favorite;

import net.oschina.app.base.BaseProtocol;
import net.oschina.app.bean.CollectBean;

import retrofit2.Call;

/**
 * Created by wei03 on 2017/1/14.
 */

public class MeFavoriteProtocol extends BaseProtocol<CollectBean> {
    private String mPageIndex="0";
    private String mUid="3226664";
    private String mPageSize="20";
    private String mType = "1";

    public MeFavoriteProtocol(String type) {
        mType = type;
    }

    @Override
    protected Call<CollectBean> getCall(String pageIndex) {
        return mApiService.getCollectBean(mUid,mPageIndex,mPageSize,mType);
    }

    @Override
    protected CollectBean parserDatas(String data) {
        return null;
    }

    @Override
    protected String getIndex() {
        return mPageIndex;
    }


    @Override
    protected String getType() {
        return "favorite_list";
    }
}
